﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MyTest
{
    //文件类
    class myFile
    {
        private float fileLength;
        //文件长度
        public float FileLength
        {
            get { return fileLength; }
            set 
            { 
                fileLength = float.Parse(Math.Round(value/1024,2).ToString()); 
            }
        }


        private string fileName;
        //文件名
        public string FileName
        {
            get { return fileName; }
            set { fileName = value; }
        }

        private string filePath;
        //文件路径 
        public string FilePath
        {
            get { return filePath; }
            set { filePath = value; }
        }

        private string fileType;
        //文件类型
        public string FileType
        {
            get { return fileType; }
            set { fileType = value; }
        }

    }
}
